﻿using FunArts.EasyDevOps.Shared.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FunArts.EasyDevOps.Shared.Models.SshClient.Command
{
    /// <summary>
    /// root文件权限命令
    /// </summary>
    public class RootFileCommand: ILinuxCommand
    {
        public string FileName { get; set; }
        public string BuildCommand(SystemVersionTypeEnum systemVersionType)
        {
            return $"sudo chown root:root {FileName} && sudo chmod 644 {FileName}";
        }
    }
}
